package com.shoulder.boot.acl.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shoulder.boot.acl.entity.Role;
import com.shoulder.boot.acl.entity.UserRole;
import com.shoulder.boot.acl.mapper.UserRoleMapper;
import com.shoulder.boot.acl.service.UserRoleService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 用户角色表 服务实现类
 *
 * @author 596767880@qq.com
 */
@Service
@Transactional
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements UserRoleService {
    @Override
    public List<Role> findRolesByUserId(String userId) {
        return this.baseMapper.findRolesByUserId(userId);
    }
}